﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MazeGenService;

public partial class game : System.Web.UI.Page{
    public MazeGeneratorSoapClient mazeGenClient;
    public string mazeDataJson = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        mazeGenClient = new MazeGeneratorSoapClient();
        mazeDataJson = mazeGenClient.GenerateNewMaze_Json(
    int.Parse(heightTxtBox.Text), int.Parse(widthTxtBox.Text));
    }
    protected void gameStartButton_Click(object sender, EventArgs e) {
        mazeJsonTxtBox.Text = mazeDataJson;
    }
}